package lesson14;

public class PersonDemo {

	public static void main(String[] args) {
		
		int x = 3;
		String s = new String();
		
		Person ivan = new Person();
		Person maria = new Person();
		
		
		
		ivan.name = "Ivan";
		ivan.age = 25;
		ivan.personalNumber = "8612025281";
		ivan.sex = 'm';
		ivan.weight = 80.5;
		
		maria.name = "Maria";
		maria.age = 21;
		maria.personalNumber = "8203301201";
		maria.sex = 'f';
		maria.weight = 55.0;
		
		System.out.println("Name: " + ivan.name);
		System.out.println("Age: " + ivan.age);
		System.out.println("PIN: " + ivan.personalNumber);
		System.out.println("Sex: " + ivan.sex);
		System.out.println("Weight: " + ivan.weight);
		System.out.println();
		System.out.println("Name: " + maria.name);
		System.out.println("Age: " + maria.age);
		System.out.println("PIN: " + maria.personalNumber);
		System.out.println("Sex: " + maria.sex);
		System.out.println("Weight: " + maria.weight);
		System.out.println();
		
		//ivan = maria;
		
		//System.out.println("Name: " + ivan.name);
		//System.out.println("Age: " + ivan.age);
		//System.out.println("PIN: " + ivan.personalNumber);
		//System.out.println("Sex: " + ivan.sex);
		//System.out.println("Weight: " + ivan.weight);
		//was Ivan and now is Maria
		
		System.out.println("Ivan`s Health " + ivan.health);
		System.out.println("Ivan`s hunger " + ivan.starvationStatus);
		
		System.out.println("Maria`s Health " + maria.health);
		System.out.println("Maria`s hunger " + maria.starvationStatus);
		
		ivan.eat(10);
		maria.walk();
		
		System.out.println("Ivan`s Health " + ivan.health);
		System.out.println("Ivan`s hunger " + ivan.starvationStatus);
		
		System.out.println("Maria`s Health " + maria.health);
		System.out.println("Maria`s hunger " + maria.starvationStatus);
		
	}

}
